<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象定义</title>
</head>
<body>
<p id="demo"></p>
<script>
  var person = {firstName:"Bill", lastName:"Gates", age:62, eyeColor:"blue"}
  var x = person;
  x.age = 10;

  document.getElementById("demo").innerHTML =
          person.firstName + " is " +
          person.age + " years old.";
</script>
</body>
</html>